<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>社团审核表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <script type="text/javascript">
function check(status){
var activityid=$("#activityid").val();
alert("++++"+activityid+"++++"+status);
location.href="<%=basePath%>act/updateStatus?status="+status+"&activityid="+activityid;

}

</script>
  <body>
  <input name="activityid" id="activityid" type="hidden" value="${activity.activityid}"/>
  <%String cnames=(String)request.getAttribute("cnames"); %>
   <form action="" method="post" id="myform">
  <table  border="1">
  <tr>
      <td>申请社团</td>
      <td><input name="actname" id="actname" type="text" value=<%=cnames %>/></td>
    </tr>
    <tr>
      <td>活动名称</td>
      <td>${activity.actname}</td>
    </tr>
     <tr>
      <td>活动目的及意图</td>
      <td><textarea cols="50" rows="8" readonly="readonly">${activity.actgoal}</textarea></td>
    </tr>
    <tr>
      <td>活动形式 </td>
      <td>${activity.actmodality}</td>
    </tr>
    <tr>
      <td>报名开始时间</td>
      <td>
      <fmt:formatDate value='${activity.starttime}' type='date' pattern='yyyy-MM-dd'/>
     </td>
    </tr>
    <tr>
      <td>报名截止时间</td>
      <td>
       <fmt:formatDate value='${activity.endtime}' type='date' pattern='yyyy-MM-dd'/>
      </td>
    </tr>
    <tr>
      <td>活动时间</td>
      <td>
      ${activity.acttime}
     </td>
    </tr>
    <tr>
      <td>活动地点</td>
      <td>${activity.actplace}</td>
    </tr>
    <tr>
      <td>活动对象</td>
      <td>${activity.actobject}</td>
    </tr>
    <tr>
      <td>奖项设置</td>
      <td><textarea cols="50" rows="8" readonly="readonly">${activity.actaward}</textarea></td>
    </tr>
    <tr>
      <td>主办方</td>
      <td>${activity.actsponsor}</td>
    </tr>
    <tr>
      <td>承办方</td>
      <td>${activity.actorganizer}</td>
    </tr>
    <tr>
      <td><input name="button" type="button" value="审核通过" onclick="check(1);"/></td>
      <td><input name="button" type="button" value="审核不通过" onclick="check(4);"/></td>
      <td><input type="button" name="button" value="返回" class="input-button"   onclick="javascript:window.history.back(-1);"/></td>
    </tr>
  </table>
  </form>
  </body>
</html>
